﻿<%@ Page Title="Forside" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="UCNKompetenceBors._default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="contentWrapper" class="floatLeft">
        <div id="defaultContent" class="floatLeft">
            <div id="introBox" class="floatLeft">
                <div id="introBoxContent" class="floatLeft">
                    <div id="introText" class="floatLeft">
                        <asp:Label ID="lblIntroHeader" runat="server" Text="Kompetence Børs" CssClass="contentTitle"></asp:Label>
                        <br />
                        <asp:Label ID="lblIntroText" runat="server" Text=""></asp:Label>
                    </div>
                    <div id="introPicture" class="floatRight">
                        <asp:Image ID="imgIntroImage" runat="server" Height="131px" Width="190px" ImageUrl="~/Images/IntroPicture.PNG" />
                    </div>
                </div>
            </div>
            <div id="purchaseSaleWrapper" class="floatLeft">
                <div id="purchaseSaleContent" class="floatLeft">
                    <div id="purchaseBox" class="floatLeft">
                        <div id="purchaseBoxTop">
                            <asp:Label ID="lblPurchaseHeader" runat="server" Text="Køb" CssClass="contentTitle"></asp:Label>
                            <br />
                            <asp:Label ID="lblPurchaseText" runat="server" Text=""></asp:Label>
                        </div>
                    </div>
                    <div id="saleBox" class="floatRight">
                        <div id="saleBoxTop">
                            <asp:Label ID="lblSaleHeader" runat="server" Text="Salg" CssClass="contentTitle"></asp:Label>
                            <br />
                            <asp:Label ID="lblSaleText" runat="server" Text=""></asp:Label>
                        </div>
                    </div>
                </div>
                <div id="purchaseSaleContentBottom" class="floatLeft">
                    <div id="purchaseBoxBottom" class="floatLeft">
                        <div id="purchaseBoxButton">
                            <asp:Button ID="btnPurchase" runat="server" Text="Gå til køb" CssClass="button" PostBackUrl="~/Exchange/purchase.aspx" />
                        </div>
                    </div>
                    <div id="saleBoxBottom" class="floatLeft">
                        <div id="saleBoxButton">
                            <asp:Button ID="btnSale" runat="server" Text="Gå til salg" CssClass="button" PostBackUrl="~/Exchange/sale.aspx" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div id="recentPurchaseSaleContent" class="floatRight">
            <div id="recentPurchasesBox">
                <div class="orangeHeader ">
                    <div class="orangeHeaderText">
                        <asp:Label ID="lblRecentPurchasesHeader" runat="server" Text="Nyeste Køb"></asp:Label>
                    </div>
                </div>
                <div id="recentPurchaseBoxContent">
                    <asp:Repeater ID="repRecentPurchase" runat="server" OnItemDataBound="repRecentPurchase_ItemDataBound">
                        <ItemTemplate>
                            <div style="margin-bottom: 2px;">
                                <asp:HyperLink ID="hyLinkRecentPurchaseTitle" runat="server" Text='<%# Eval("Title") %>' NavigateUrl='<%# Eval("PurchaseID","~/Exchange/purchaseDetails.aspx?pid={0}") %>' ToolTip='<%# Eval("Title") %>' CssClass="link"></asp:HyperLink>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
            </div>
            <div id="recentSaleBox">
                <div class="orangeHeader">
                    <div class="orangeHeaderText">
                        <asp:Label ID="lblRecentSaleHeader" runat="server" Text="Nyeste Salg"></asp:Label>
                    </div>
                </div>
                <div id="recentSaleBoxContent">
                    <asp:Repeater ID="repRecentSales" runat="server" OnItemDataBound="repRecentSales_ItemDataBound">
                        <ItemTemplate>
                            <div style="margin-bottom: 2px;">
                                <asp:HyperLink ID="hyLinkRecentSalesTitle" runat="server" Text='<%# Eval("Title") %>' NavigateUrl='<%# Eval("SaleID","~/Exchange/saleDetails.aspx?sid={0}") %>' ToolTip='<%# Eval("Title") %>' CssClass="link"></asp:HyperLink>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
            </div>
        </div>
    </div>

    <div id="newsBox" class="contentBoxLarge floatLeft">
        <div id="newsBoxContent" class="floatLeft">
            <asp:Label ID="lblNewsBoxHeader" runat="server" Text="Seneste Nyheder" CssClass="contentTitle"></asp:Label>
            <asp:DataList ID="dlNewsBox" runat="server" ItemStyle-Width="321px" ItemStyle-Height="150px" Width="964px" ItemStyle-VerticalAlign="Top" RepeatColumns="3" RepeatDirection="Horizontal" OnItemDataBound="dlNewsBox_ItemDataBound">
                <ItemTemplate>
                    <div style="margin-left: 5px;">
                        <asp:Label ID="lblNewsArchiveTitle" runat="server" Text='<%# Eval("Title") %>' ForeColor="#FF9933" Font-Size="14pt"></asp:Label>
                        <br />
                        <asp:Label ID="lblNewsArchiveDateAndAuthor" runat="server" Text='<%# Eval("CreatedDate", "{0:dd-MM-yyyy}") + ", " + Eval("User.UserName") %>' Font-Italic="True" Font-Size="8pt"></asp:Label>
                        <br />
                        <asp:Image ID="imgNewsArchiveImage" runat="server" ImageUrl='<%# Eval("ThumbnailURL") %>' Width="100px" Height="100px" />
                        <br />
                        <div style="height: 60px; width: 275px;">
                            <asp:Label ID="lblNewsArchiveText" runat="server" Text='<%# Eval("Text") %>' Font-Size="12pt"></asp:Label>
                        </div>
                        <br />
                        <asp:HyperLink ID="hyLinkNewsArchive" runat="server" NavigateUrl='<%# Eval("NewsID", "~/newsDetails.aspx?nid={0}") %>' Text="Læs mere" CssClass="link"></asp:HyperLink>
                    </div>
                </ItemTemplate>
            </asp:DataList>
        </div>
    </div>
</asp:Content>
